In one truck, yes. The frequency of dead batteries, however, will be the same as passenger vehicles; who will dispose of those?
Seriously, you can't be this daft. The operator, of course, with the price rolled into the service cost.
All of which are relatively involved.
No, they're not. Even your laptop battery estimates its capacity, and that's about as simple as li-ion battery packs get. Coulomb counting, voltage measurements at start and end compared to the charge temperature, charge voltage curve shapes, direct measurement of pack heating over the course of charge to measure internal resistance, and about half a dozen other methods are all usable and widely used to estimate capacity remaining in a pack. Pretty much every modern EV and hybrid in existence checks its battery pack's performance at least at the pack level, if not the individual cell level (Tesla does it at the "brick" level), to see how it's aging and when components or the pack as the whole need to be replaced.
Measuring remaining battery capacity is a concept older than the light bulb.
testing and inspecting a battery for damage and danger conditions so you don't install it into someone's vehicle and get a lawsuit for "vehicle exploded in a giant flaming blaze" (or drive all your customers away with "we don't test our batteries for anything but charge, and damaged batteries may set your truck on fire") is wholly different.
Just like gas stations check their gas for impurities that can cause damage to an engine? No, it's the manufacturer's issue to ensure that the product meets its stated usage specs - in this case, the specs including safe handling of damage and X number of swap cycles. Meeting damage control specs is why Tesla isolates each cell in a canister to prevent failure propagation. And why packs always come with fuses/breakers that blow when the pack gets wet or there's otherwise a short.
(Just ignoring that many types of li-ions don't burn even when abused. Tesla uses standard cobalt-based 18660s, which is why they have to have a failure isolation system, but vehicles like the Volt and Leaf use more stable spinel chemistries)
That may result in diesel being the cheaper fuel by far
Tesla's battery packs have an 8 year, unlimited-mile warranty. Even if we assume that they're only good for 1000 full charge cycles (which should be well on the low end), at 30 tonne-miles per kWh of charge, times 1000 cycles, and $150/kWh for the pack, that's 200 tonne-miles per dollar of pack capital cost. A diesel truck will get about 120 tonne-miles per gallon of diesel, and diesel costs somewhere in the ballpark of 6x more than electricity per unit range (depends on your location), meaning that the electric version saves about 3-4$ per dollars of energy cost per dollar of pack capital cost.
There are a lot more batteries on a truck.
Wait, so you're picturing them being done individually, one after the next? Seriously? *smacks forehead*
Fortunately, if you mount batteries under there without a bunch of armored doors and other shit to hold it all together, the cargo container catches fire when the batteries become damaged.
In the parallel world where EVs are always catching on fire, and petroleum-fueled vehicles aren't - quite unlike our actual world.