Getting some rest in 18 Wheels of Steel: Haulin is simple once you know the controls. When your driver starts yawning, pull over to the side of the road and press the N key to switch off the truck.
After that, use the advance time button and your driver will get some sleep. One important detail: the truck needs to have a sleeper cab for the driver to rest inside it. If it does not, your driver will have to check into a hotel to sleep instead.