Reset bounding box?

Hello. I have been searching everywhere to try to get my bounding box object aligned for export. :frowning:

I can only manage to get it aligned with rotating in object mode, but I have thousands of objects and am looking for an easier way.

Is there a script somewhere or can python even reset bounding boxes to object aligned after they’ve been changed?