That would still make them cleaner than a diesel ICE truck. Since the generator can continuously run at a constant rpm where the engine burns the fuel efficiently. So that would also generate the least particulate matter since the burn would be cleaner.
There is a Canadian company called Edison who will retrofit a truck into a hybrid. They add two electric axle engines and convert the IC engine into a generator to charge the batteries.
It’s a powerful tool that you shouldn’t use as a book keeping tool and ledger for a company that manages $16B. And I’ve worked on a trading floor of a big energy company. Excel was only used within departments as a tool for the employees not as the entire companies financial administration.