I hate to think of the number of times I found myself in this position (scary near-miss as a learning experience)
The OP story reminds me of this video from the UK (I've shared it a ton):
When behind a truck, I try to position myself in a way that I can see the driver in the mirror. However, this is easier said than done in traffic.