“Are you winning, sun?” How many years does the sun have left, and what will humanity do when the sun’s final days are near?

IIRC, it’s around five billion years that the sun has left. And by then, either humanity will have spread throughout the known universe and the few humans left on earth will simply leave, or we won’t be around anymore to care. My money is on the second option.