Your best bet might be a white noise machine. When I first moved to SF, I lived in the Tendernob close to both a fire station and hospital. I was on the the second floor of a building with the original windows where my bedroom faced the street. This was the only thing that helped me get any sleep.
We use these with smart plugs - work great: https://www.amazon.com/gp/product/B00HD0ELFA/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1