Policies are being gradually implemented to address climate change by pushing for the replacement of fossil-fueled generation with distributed renewable energy resources to achieve power systems decarbonization. The massive incorporation of DER presents resilience challenges due to their variability. Flexibility levers, like energy storage systems, can help address some of these challenges, but there are still significant barriers to modeling, integrating, and deploying such solutions. This panel will discuss best practices, state-of-the-art approaches, and key challenges related to the planning and operations of the grid with flexibility levers provided with any kind of flexibility levers. Critical tools such as digital twins or artificial intelligence could be considered to solve issues raised in various applications, from large-scale networks to smaller and more recent grid-connected energy systems, like energy communities.