An electrified highway is theoretically the most efficient way to eliminate truck emissions. But the political obstacles are daunting.
Source: What if Highways Were Electric? Germany Is Testing the Idea. – The New York Times
The time to do this was probably 30 years ago; by the time this can be deployed at any significant scale, BEV trucks will be here. There could still be a niche for it on hot-spot routes.