The only difference between JS and TS is the concept of strongly typing your code.
In this case, you want to migrate this code from JS to TS, you shouldn't need to do anything as the TS transpiler will be able to infer the types of the variables. If you do wants to enforce the type for the variables, you can do:
interface channelObj {
[key: string]: string
} // This is called index signature and is useful for typing object key-value
const channel: channelObj = {},
arr: string[] = [string, ...];
for(let i = 0;i < arr.length;i++ ){
channel[arr[i]] = "Amo" //equal string value
}
arr: String[] = [..]