An internal fuel tank and a high-capacity tank externally
Once the fuel is getting low, launch a refuel. when the new supply gets closed, eject the previous tank, dock the new one.
Easy.
When they managed to du an in air refuel of a SR71 in 1970s . Surely we can dock a fuel tank in 2022?