Read the text. The figure of speech is shown in bold.

Later, once more in her bed beside the warm cocoon of her sister, Annemarie remembered how her father had said, three years before, that he would die to protect the king. That her mother would, too. And Annemarie, seven years old, had announced proudly that she also would.
Now she was ten, with long legs and no more silly dreams of pink-frosted cupcakes.
From Lois Lowry, Number the Stars. Copyright 1989 by Lois Lowry

What does this metaphor tell you?

No bold shown. If it is "warm cocoon", it is a very comfortable, secure situation.