Short answer: do not pretend to be able to predict the future; close only based on the evidence in front of you.
The history
This close reason was originally proposed by Brian Diggs as a replacement for one specific use of the former Too Localized close reason; note in particular Kate's comment in the discussion there:
But not all typo questions are TL: imagine someone who muddles up comma and semi colon in C++ for example. The compiler error message may not make sense to the coder, but searching SO could lead to someone's typo question and thus enlightenment. Only when the typo is really not going to help anyone (you declared Count but are using Cont) should it be closed - and offtopic feels a little strange for those since you don't know that until it's been answered.
This led to the wording we have today; observe the note in the announcement several months later:
Note that the original wording proposed for this reason has been tweaked several times in response to confusion observed here on Meta and on Stack Overflow itself. The target remains the same though: "face-palm" problems that no longer affect the asker and whose solutions will never benefit anyone else.
Emphasis added: the intent here was clearly to create a descriptive reason for use when closing questions whose root-cause arose from a mistake that cannot be identified (and thus whose solution cannot be used) by future readers, even those making the exact same mistake.
In other words, the bold parts of this close reason are not optional. The critical flaw in the old "Too Localized" reason was that it invited close-voters to pull out their crystal balls and speculate on the unknowable future: is this a problem that someone else might have again? The results were often laughably inaccurate - we saw questions that were the target of multiple duplicates, with heavily viewed and up-voted answers, being closed as "too localized" based on someone's bizarre idea of what problems other people might encounter... This was clearly counter-productive.
The goal with the "typo" reason was to capture the more objective scenarios, those where the problem wasn't actually described in the question at all. Things like...
- Asker questions his implementation of an algorithm only to realize that a loop wasn't being executed due to a stray semicolon.
- Strange browser rendering that ended up being a misspelled JavaScript symbol name.
- Suspected compiler / API bug ends up being the asker forgot to rebuild after making code changes.
- etc. - anything where the stated problem is wholly removed from the actual problem.
Note that this does not cover a bunch of situations that folks sometimes assume it does:
- Calling the wrong API function, or forgetting to initialize a parameter causes a specific misbehavior (which is noted prominently in the question): this is a mistake that someone else might make and if the effects are described then they can find it when they do.
- An actual API / tooling bug (cough new XCode release cough) that causes things to break. This will almost invariably affect multiple people until it is fixed (usually in a subsequent release).
- A typo where the error message - stated in the question - actually points to a typo with some accuracy. Again, this will almost certainly happen to someone else at some point (and thus is useful as a searchable solution or duplicate-target).
Worth keeping in mind that we've always kinda preferred closing things as Duplicates than using some other reason, if the topic itself is reasonable; over the past few years, the system has been altered to make dup-closing far more efficient than any other form of closing... So if a problem can be solved in a general-purpose fashion, leaving it as a duplicate-target is much better than closing it, even if you personally hate the question and are disgusted by the person asking it. Something you might consider reminding the folks who argue for more liberal interpretations of these reasons...