Officials found a document discussing AI’s purported risk to humanity and “our impending extinction,” according to the criminal complaint.