It's saying thanks as a response to the slower truck flashing its high beams to let the faster truck know it's now safe to move back over to the slower lane.
yes, that's saying thanks. It's equivalent to the hazard lights, but in some vehicles the hazard lights button isn't very accessible.