I empirically tested these types of glasses over the past 18 months with my own n=1 study. There are a lot of confounding variables pretty much wrecking my shit (a regrettable period of "crunch time" at work, sometimes drank too much last year, other times didn't get the usual exercise in, a few times I had a specific problem space where if I woke up I would churn that specific problem set in my mind and not easily regain sleep).
Nevertheless, I got a conclusion applicable to me, after trying 10-12 pairs of these things: these glasses really do absolutely improve my sleep, but only:
a.) if I buy the orange ones which block 99.9% of blue and green light, which have the side effect of making everything look really shitty (like Flux/Night Shift on steroids, delicious tangerines look like sour lemons)
b.) if I put them on 2-3 hours before bed (I set a calendar alarm)
Since around the time I had kids (10 years ago) I've had trouble both falling asleep and staying asleep.
I lost the orange glasses for a few days (actually, 4-year-old absconded with them to play "robot") and my sleep problems returned immediately. (Note that I use screens in the evening and night, even though it is mainly reading email and books at those house, I read books on iPad Pro including in bed, so I am bathing my eyes in blue LED light).
I ordered anther pair, and my sleep (both subjectively, and as tracked by my phone and watch (to the limited ability of those devices to track one's sleep)) went back to okay/good immediately. I mean literally the second orange glasses arrived from Amazon in the morning, and I slept well that night.
Anecdata, but life-changing for the anecdoter (me). I'll never be without such glasses again, until such time as science devises something even better.
NOTE: I tried like 8-9 pairs of the clear normal-looking kind that purport to block blue light. These had no measurable effect at all on my sleep. It was only the color-warping orange ones that worked.
UPDATE: I forgot to add that these glasses block blue/green light so strongly that they have the side effect of substantially dimming ALL light. So it is entirely possible that wearing regular sunglasses might have the same effect — I haven't tested that.
[1]: The first ones I bought: https://spectra479.com
[2]: The replacement ones I bought after my kid stole the first ones: https://www.yamamoto-kogaku.co.jp/safety/product/detail.php?...