On the S-Corp tax return (form 1120S), you will enter the wages as an expense when entering the expenses for the S-corp.
TurboTax Business will automatically transfer these wages to the QBI section.
On your personal return (form 1040), you enter your form W-2 as income.