This command will enable and disable (toggle) AI detection. With AI detection enabled, NPCs are aware of you when you are nearby and/or performing actions like combat on them. With AI detection disabled, NPCs will won't be aware of your proximity to them - so for instance, aggressive monsters that would usually attack you when nearby will no longer attack you. Note that this command does not stop detection for pickpocketing.
tdetect
tdetect
If AI detection is enabled, executing the above command will disable it. If disabled, executing the above command will enable it.
ToggleDetection
This is a longer version (alias) of the above command - it has the same function.