Hsa

What happens to an HSA if one dies and the spouse dies as well? How are we able to make sure that the money goes to our kids?