Solar Compression
In the millions of years we have before the sun expands, we will very likely have the technology to surpress the expansion magnetically.
(2) If you could capture enough sunlight to “lift” the star’s mass away to slow down its rate of burn it could be billions of more years, see
https://academic.oup.com/mnras/article-abstract/523/3/3251/7...