Any city-dweller can tell you that some nights are just too noisy to let you sleep. Your upstairs neighbor erupts into early-morning yells (pigeons on his windowsill maybe? who can tell), while your downstairs neighbor blasts “Shape of You” for the ninth friggin time that night. Yes, hours often reserved for sleep are usually the ones in which a hellish cacophony emerges.

You can’t shut your neighbors up. But researchers out of Singapore’s Nanyang Technological University have done the next best thing: they made noise-cancelling windows that can cancel out any harsh noise coming into your home. Picture noise-cancelling headphones, except for the construction going on and the trains or planes that might pass by.

The device is essentially an array of microphones and speakers that register the sound waves of loud noises coming in and cancel them out by playing an inverted version of the same wave — the waves’ peaks matched perfectly to the valleys of the other. When the inverted waveform and the original sound interact, they cancel each other out, leaving just mellow, ambient noise. All in real-time.

This, by the way, is exactly how noise-canceling headphones work. But canceling sounds in a large open area is more challenging than just what’s next to your ear, and requires more sophisticated technology.

For now at least, the prototype covers an entire window. And because it’s so bulky, the device blocks out the light, too, though the researchers plan to make their design more sleek in the future.

So far, the researchers have just made a prototype and not a version of the technology that you can go out and buy. Futurism has reached out to the researchers to learn how much these windows will cost, but as of this article’s publication we have not yet heard a response (we will update this post if/when we do).

What we do know? Cost-effectiveness was a major challenge for engineering this gadget in the first place. A technologically-advanced array of smart windows is unlikely to find its way to low-income housing or the noisiest (and most affordable) parts of a city where people likely need them most. Rampant noise pollution and even just the stress of city life can cause health problems, so it’s unclear whether these windows will ever reach the people who would benefit from them the most.

Soundproof curtains cost more than $100 per window, which is already cost-prohibitive for those who live in the noisiest parts of a city (not to mention impractical for those that like natural light). It seems like for the immediate future, the ability to get some good peace and quiet will remain a luxury.