Linda Yaccarino announced her resignation as CEO of X, the social media platform formerly known as Twitter, after two years at the helm of the Elon Musk-owned company.