SAN FRANCISCO — After 18 years, Elon Musk will move X, formerly known as Twitter, out of San Francisco, according to Mayor London Breed’s office. The social media company has a long history with the city, but the billionaire entrepreneur, who acquired the platform in 2022, has often used it to bash the city’s progressive politics and homelessness crisis.