Spray pan with cooking spray. Stir in the garam masala, and then quickly add the onions and fennel.
Stir in onions and salt and cook until the onions soften, just a minute or two. Now it's up to you in regards to how long you'd like to let the onions cook - it you are in a rush, just cook them for a few minutes until they soften. If you have a bit more time, let them start to caramelized and darken. Stir in the cranberries, cook them for thirty seconds and add the tofu. Stir and stir to combine the tofu with the other ingredients. Remove from the heat and stir in the cilantro. Taste and add more salt if needed.