in 1-2 sentences explain the meaning of the metaphor in the following sentences

"the shabby blanket that wrapped around me was a warm hug from a old friends"

This metaphor is comparing the shabby blanket to a warm hug from an old friend, suggesting that the blanket provides comfort and familiarity like a close companion would.