There is a legally required 60 day notice period, and plenty of states have their own requirements on top. New Jersey for example explicitly requires 1 week of severance for every year worked. Yes tech companies are often more generous, but doing a mass layoff with no notice and no severance was never an option to begin with.