Different states have varying legal requirements, though many tech companies anchor to California because it often sets the floor. So if you solve for California, you're likely solving for most of your workforce. In general, yes, at major tech companies there is severance, payout of any accrued paid time off, and sometimes there's additional payment to cover COBRA payments for 1+ month(s), as well as resources for finding a new job. Some companies will also extend termination dates to help an employee snag an additional month of health coverage. For folks on H1B there is almost always additional legal representation support as well.
I think large tech companies do an exceptional job supporting employees. But of course, for the person affected, still scary nevertheless. My heart goes out for those people.