Abstract-A general method, based on susceptibility tensors, is proposed for the synthesis of metasurfaces transforming arbitrary incident waves into arbitrary reflected and transmitted waves. The proposed method exhibits two advantages: 1) it is inherently vectorial, and therefore better suited for full vectorial (beyond paraxial) electromagnetic problems, 2) it provides closedform solutions, and is therefore extremely fast. Incidentally, the method reveals that a metasurface is fundamentally capable to transform up to four independent wave triplets (incident, reflected and refracted waves). In addition, the paper provides the closed-form expressions relating the synthesized susceptibilities and the scattering parameters simulated within periodic boundary conditions, which allows one to design the scattering particles realizing the desired susceptibilities. The versatility of the method is illustrated by examples of metasurfaces achieving the following transformations: generalized refraction, reciprocal and non-reciprocal polarization rotation, Bessel vortex beam generation, and orbital angular momentum multiplexing.