Honestly I think it will go out without much human interference, I think a cosmological event will be the thing that wipes away the earth, like we are facing a blackhole that could just expel itself at any point and wipe us out, and like how many times do we hear about giant meteors nearly sneaking up on us? I ain't sure when its gonna happen but I think it will be sudden and painless like vaporization or a drawn out horrible death like having the sun blocked out and dying slowly but both of these options are something we can't prevent, space is mad scary and ready to tear us a new one yah know?