It has several meanings, none in Spanish, but surely the query is by the shorthand way of writing "thanks" ("thank you" ) in English, and sometimes within messages in Spanish.
tks, is the abbreviation for thanks which in English means thank you. It's just an abbreviated way of saying thank you.