It's really early to see if the current layoff wave is just a lean time like the dotcom burst or 2008, or if it's really they end of tech as a low unemployment, high paying profession.
Yes AI can change the situation durably, but it's not the first time developers get a new tool that gets them more productive. We've seen that with compilers, IDE, frameworks, etc.