Infinity Welcomes Careful Drivers by Grant Naylor

Set in a distant future aboard the mining spaceship Red Dwarf, the story follows Dave Lister, a low-ranking technician who finds himself as the last human alive after a radiation leak wipes out the crew. Revived from suspended animation three million years later, Lister navigates life with a quirky group of companions: a hologram of his obnoxious former bunkmate, Arnold Rimmer; a humanoid creature evolved from his pet cat; and a neurotic ship's computer named Holly. Together, they embark on a series of comedic and often absurd adventures through space, exploring themes of isolation, identity, and the human condition.