What happens to my HSA when I die?

I have a Healthcare Savings Account (HSA) with a significant balance. I realize this money is for medical expenses. I would like to know if any part of that HSA can be used for my burial or other related funeral expenses.  Would my beneficiary inherit this HSA balance?

Death is certainly very medical 🙂