In a food processor or blender, combine mango, habanero, 2 tablespoons lemon juice, and olive oil. Puree until smooth.
Season tilapia lightly with salt. Pour or brush glaze over tilapia. Marinate, if desired, for up to 30 minutes.
Make salsa by combining mango, avocado, and onion in a small bowl. Gently stir in cilantro, lemon juice, and red pepper flakes and salt to taste. Set aside.
Cook tilapia in a heavy skillet over medium high heat until cooked through and flakes easily with a fork, about 5 minutes per side.