it’s all fine, Cixin Liu wrote about this eventuality in The Wandering Earth. The plan is to turn the Earth into a gigantic space vehicle and simply move it to another star. Takes a coupla thousand years mind you, but you should see the hemispheric exhaust ports we build….