I wish there was something similar I could wear during sleep comfortably. I tried earplugs but somehow my sleep is less restful with them in. I suspect they either make my inside noises more noticeable or block airflow during night time breathing.
I guess the other more expensive solution is to move to an apartment facing a courtyard rather than the streets or to get heavy noise blocking curtains.
I know Bose used to make noise canceling sleep buds but I’m not sure how well they work. Since they’re discontinued I’m guessing not well.