Step-by-step explanation:
Without knowing further details of the passage or book, we can only guess. With that being said, the author may have used the simile to describe how as the night progresses, it gets darker, as if the security blanket was covering the area.
Maybe something like this. Good luck.
Cheers.