Long ago, in some distant galaxy, an advanced civilization had turned a small, young elliptical galaxy into their own astronomical playground. They seemed to have come up with a way to prolong stellar lifespans. For further clarification, they could theoretically prolong the lifespan of a blue supergiant (20 times wider than our sun, 20-1,000 times as massive and 1,000-one million times as bright) from ten million years to ten billion, a yellow hypergiant (1300 times wider than our sun and 500k-750k times as bright) from a few million years to a few billion, and a red hypergiant, which has a natural lifespan of 100,000 years, can live as long as a red dwarf.
Through artificial, technological means, how would this advanced alien race prolong these giants, supergiants and hypergiants far beyond their natural limits?