She says going to bed was “almost like walking the plank.”

Jennifer Aniston’s struggle with sleepwalking had alarming consequences… literally.

“I have been known to do that.

Jennifer Aniston

Jennifer Aniston.Steve Granitz/WireImage

“And I don’t think I do that anymore that was when I was super sleep-deprived.”

Aniston previously opened up about her experiences with sleepwalking in 2002 toUs Weekly.

“The alarm scared the s— out of me,” she said at the time.

“I woke up, and I was out by the pool equipment in the back.”