Get your taxes done using TurboTax

Ok so just to be clear.  We can deposit $367 into my husband's old HSA to add it to the $50 that is still there and then withdraw it for an eligible expense then it will clear the excess amount?  Then close that account and make sure he reduces his contribution for this year in his new account by $367 so that we don't go over the $3550?  Am I understanding that correctly?