I would say your minimum should be 50A circuit for a 40A charger. You aren't going to fully charge (0-100%). Planning for that edge case will cause you to spend way more than you need to. If you want the ability to use the truck as a home power backup (yet to be fully confirmed or detailed), plan on a 100A circuit.