A 32-year-old pregnant woman presents for her routine prenatal visit at 36 weeks of gestation. She was diagnosed with chronic hepatitis B earlier in the pregnancy, with positive HBsAg and HBeAg, and an HBV DNA level of 300,000 IU/mL. She has not started antiviral therapy. The obstetric team discusses strategies to minimize the risk of transmitting hepatitis B to her baby during and after delivery. Which of the following is the most effective way to prevent perinatal transmission of hepatitis B?