Sleep deprivation is no joke and doesn’t take many nights at all. A while back, the worst upstairs neighbors on the planet woke me every night, multiple times a night. My cognitive function definitely suffered.
I hope those neighbors are miserable wherever they ended up. They deserve it. I asked them multiple times with decreasing politeness to not slam doors or fling objects around at 3 AM.