Microsoft chief executive Satya Nadella last week said he was laying off about five percent of the companys workforce, just days before pumping several billion dollars into OpenAI, the company behind the controversial chatbot ChatGPT.