Well.... turn on lights and loud tv or radio... something with lots of bass. Drink calming tea and sniff lavender?
Now that you know what is triggering you... you can process it differently (or begin to) remind yourself that's fireworks, and can be enjoyable at some time in the future. Fireworks won't hurt you. This is now, that was then.