The shabby blanket that wrapped around me, was a warm hug from an old friend. What is the meaning of the metaphor in that sentence

This metaphor symbolizes comfort, familiarity, and nostalgia. The blanket represents a sense of security and warmth, akin to the feeling of being embraced by a close friend. It suggests that the blanket brings a sense of familiarity and reassurance, much like the comfort derived from a long-standing friendship.