TOKYO—The Japanese CEO who plans to fly around the moon on Elon Musk’s spacecraft has found a way to send his struggling company’s shares skyward: He said he would stop tweeting.

Yusaku Maezawa, until now a frequent Twitter user like Mr. Musk, made an announcement on the social-media platform on Thursday.

“I will focus on my main business....