Yeah there are laws : https://www.dol.gov/general/topic/termination/plantclosings. Probably state laws as well. These require notice of severance or post payment and protect against discrimination. Twitter can try to claim that they’re all being fired for cause, but that’ll just end up paying a whole lot of lawyers.