I recall back in 7th grade I mapped out a sci-fi story about people having to abandon the Earth after it suddenly transitioned into its red giant phase. I didn’t ever get to writing the story, but I was captivated by the concept of the need for sudden evacuation.
In some 1990s sci-fi series, an alien race played the long game by directing some (invisible) energy beam at the sun, accelerating its transition into becoming a red giant, a process which would have otherwise taken billions of years.