I haven’t been present for the deaths of all my pets, but I have for all but one over the past 20 years*. It hurts- I’m tearing up a bit as I write this- but I personally think they were comforted by my hugs, pats & words.
* she passed in her sleep, cookie under her paw.