If your spouse is in the U.S. on a dependent visa (J-2 or F-2) with no U.S. income, they only need to file Form 8843.
Include your spouse’s details in Step 5 – “About your college/program.” The system will then generate Form 8843 for them.
Print and mail this form separately to the IRS, as it cannot be filed electronically.