Even getting notice that layoffs are happening is doing well. At one company (somewhat awkwardly in my first week there) everyone was rounded up into a meeting area, and it was announced that layoffs were happening, and by the end of the day we'd know if we still had a job.
Later on in that job they handled it even worse, with a gradual attrician over several weeks of people suddenly finding out they no longer has a job, and would be paid their notice period. No idea how things went from there, since that was when I jumped ship.
(And hello! I still find it a bit odd when I see people I know commenting on Hacker News.)