Shares in Cisco Systems (CSCO) surged premarket after the company laid out plans to cut thousands of jobs to free up cash for artificial intelligence. In announcing it plans to shed about 5% of its workforce just this quarter, Cisco joins a number of companies making drastic cuts to adapt to the AI era—most recently GitLab (GTLB), which made headlines earlier this week when it outlined plans to shrink its footprint and headcount, scrap layers of management and use AI to automate certain functions. Cisco shares are up about 18% ahead of the opening bell.