Put the olive oil into a deep pan, heat for a few minutes and and add the onions.
Cook gently until the onions are soft and translucent.
Add the garlic and continue cooking until fragrant.
Add the tomatoes, cinnamon, ginger, citrus zest, nutmeg, thyme, lemon juice, and both vinegars.
Stir well and let simmer for about 25 minutes.
Add the figs, muscovado sugar, salt, pepper, dried chilies, and habanero chili.
Mix everything and let it cook for another 25 minutes until the chutney has a jam-like texture with chunky pieces.
If desired, blend lightly with a hand mixer for a smoother consistency.
Put the chutney into sterilized jars while still hot, seal hermetically, and let cool completely.
Store in the refrigerator for up to three months.