New moms and sleep

An
How do you guys cope with the lack of sleep associated with newborns? I went through this with my first one (5 years ago) and went through major depression bec I was not sleeping for MONTHS. I started getting a full night of sleep when he was around 3 years old. I'm absolutely dying to meet my second baby but sooooo terrified of going through this again. Do you guys have any tips on how to get some good rest but also be able to get stuff done in the house?