As part of the agreement, which was announced on Tuesday, Hearst will license content from Esquire, Cosmopolitan, Elle and more than 40 newspapers for use across OpenAI's products