That’s for type annotations. An important reminder, type annotations in Luau are literally annotations; they do not and should not affect the compilation or runtime* (few edge cases) of the code. typeof
used in this context retrieves the type of a value. For example:
local a: typeof(workspace) = nil::any
--even though this variable is nil, the autocomplete feature will still treat it
--as if it's actually workspace itself because it has been assigned that type