I got laid off but least I had the dignity of being told in person, given time to hand over my projects, allowed to remove my personal stuff from my work laptop (did not have any) and a generous severance package - it was about a month.
So thankful I don't work in the US.