If you're saying "im cooked", you're saying "nah bro im dead". This phrase is usually used when someone is in trouble, or some bad situation. Sometimes it can be used for when you're exhausted.
"Nah bro we have a test today?! Shii, im cooked!! I didn't practice at all dawg! Ight, im finna cheat"