Supporting neonatal immune function involves ensuring adequate nutrition, promoting [skin-to-skin contact](href), and encouraging breastfeeding. Prophylactic measures, such as administering immunoglobulins or vaccines in specific high-risk situations, can also help protect newborns from infections.