One of my three hates fireworks, I saw a tip to play Taiko Drumming from YouTube as apparently the frequency of it blocks the noise.
My dog went from running up and down barking to sound asleep within 5 minutes, a local friend tried with her dog who had been extremely distressed and music and calming spray hadn’t worked and he fell asleep too.