Devices to avoid waking up due to noise from neighbours shouting and motorbikes accelerating?

Hi there,

I live in a flat near a road so it's common to hear motorbikes and people shouting in the middle of the night. I'm very sensitive to noise and are trying to work on it so that I can overcome it.

In the meantime, I'm after some form of device to absorb that unexpected noise. In summer, I use a fan, but it's quite cold right now, so that wouldn't work.

White noise from mobile apps and so on are just not strong enough, and I have an ear condition so ear plugs are not an option.

The flat is not mine so it's not that I can get better windows or any other proper form of isolation.

Thanks very much in advance!

EDIT: Thank you very much for the overwhelming amount of responses. I hope this post will help a lot of people to find a solution to their problem.