Preheat the oven to 350℉. Line a 13"x18" sheet pan with nonstick foil or regular foil and lightly spray with nonstick cooking spray.
Fill the bottom of the pan with the Ritz crackers in a single layer.
Sprinkle the chopped pecans evenly over the crackers in the pan, filling the cracks between the crackers. Set the pan aside.
Melt butter in a saucepan over low to medium heat. Add brown sugar once the butter is completely melted and stir to combine. Bring it to a boil and continue boiling for 2 minutes 30 seconds.
Remove the pan from the heat and stir in the vanilla.
Immediately pour the butter sugar mixture over the pecans and crackers, covering them completely.
Place the pan in the oven for 8-10 minutes, or just until the edges of the brown sugar mixture has a few bubbles.
Remove the pan from the oven and immediately sprinkle the chocolate chips on top of the crackers. Allow the crackers to sit for 5 minutes to melt the chocolate. Then use a spatula to spread the melted chocolate over the cracker layer.
Top with the sprinkles and flaky salt (if using). Place the pan in the refrigerator to allow the toffee to harden for 1 to 2 hours.
Remove the toffee from the pan and break it apart into pieces with your hands.