In a medium saucepan, combine the cranberries, orange juice, granulated sugar, brown sugar, and a pinch of salt.
Place the saucepan over medium heat and stir until the sugars dissolve and the mixture begins to simmer.
Once bubbling, reduce the heat to low and let it cook for about 10-15 minutes, stirring occasionally. The cranberries will start to pop and break down.
Add the ground cinnamon, nutmeg, ground cloves, and orange zest to the saucepan. Stir well to combine the flavors.
If using walnuts, stir them in during the last 5 minutes of cooking for added crunch and nutty flavor.
Once the sauce has thickened and the cranberries have burst, remove from heat and let it cool to room temperature. The sauce will continue to thicken as it cools.
Transfer the cranberry sauce to a serving dish or airtight container and refrigerate until ready to serve.