For employment tax purposes, the S Corp treats the HSA contributions as wages subject to income tax withholding (but exempt from FICA and Medicare taxes). While you pick up the HSA contributions as income on your W-2, you can deduct the HSA payments made by the S Corp on your Form 1040 and, effectively, you have a wash for tax purposes.
pay it yourself.