Deductions & credits

Once funds are put into an HSA account they can be used to pay for any qualifying medical expenses or you can  reimburse yourself for any qualifying medical expenses you paid out of pocket.   Working, not working, on unemployment are all immaterial situations... you are thinking of the form 5329 penalty exceptions and HSA distributions go on a form 8889.  Different animal.