In object mode, click the item/clothing you want to transfer weights to.

In modifiers on that item, add armature and data transfer.

In armature, select the armature.

In DataTransfer, select the main body mesh.

Then, select vertex data, Vertex Groups, Nearest Edge Interpolated.

Afterwards, click “Generate Data Layers” the “Apply”.