There are companies that make battery packs the sizes of small ice coolers that can serve as a charging “hub” on your truck.
Plus there are trucks like the f150 lighting that have electrical outlets so you could recharge in the field.
Thirdly, with 1-2 spare batteries that you can swap and charge, you basically have zero downtime.