Elon Musk said SpaceX (SPCX) has closed a $40 billion debt deal to pay for the chips it needs to fuel its artificial intelligence ambitions.