Multiport network theory (MNT) is a powerful analytical tool for modeling and optimizing complex systems based on circuit models. We present an overview of current research on the application of MNT to the development of electromagnetically consistent models for programmable metasurfaces, with focus on reconfigurable intelligent surfaces for wireless communications.