Put on a Performance Improvement Plan, a prerequisitive before getting fired. Also known as Paid Interview Prep, because that's what it ends up being for many people.
Is this just an American thing? I don't think tech companies can fire like this in Europe. I have 100% worked in companies that used PIP processes which had nothing to do with firing staff.